home *** CD-ROM | disk | FTP | other *** search
/ Netware Super Library / Netware Super Library.iso / admin / top20net / bu / bu-demo.bat next >
Encoding:
DOS Batch File  |  1995-03-24  |  2.2 KB  |  96 lines

  1. @echo off
  2.  bu
  3.  bu p
  4.  
  5. :start
  6.  bu h Demonstrating the "BU" Batch Utility
  7.  echo -------------------------------------------------------
  8.  bu m This message should have a blank line before it and after it!
  9.  echo -------------------------------------------------------
  10.  bu p Pausing...
  11.  bu p^ Pausing on clean screen
  12.  bu m^ Message on clean screen
  13.  bu y {y:60} Do you want to continue
  14.  if errorlevel 1 goto yes1
  15.  echo You said NO
  16.  goto cont1
  17.  
  18. :yes1
  19.  echo You said YES
  20.  
  21. :cont1
  22.  bu h Daily Schedule
  23.  bu t >nul
  24.  if errorlevel 7 if not errorlevel 8 echo Today is Saturday
  25.  if errorlevel 6 if not errorlevel 7 echo Today is Friday - do weekly backup
  26.  if errorlevel 5 if not errorlevel 6 echo Today is Thursday
  27.  if errorlevel 4 if not errorlevel 5 echo Today is humpday
  28.  if errorlevel 3 if not errorlevel 4 echo Today is Tuesday
  29.  if errorlevel 2 if not errorlevel 3 echo Today is Monday - do 1st-day-of-wk jobs
  30.  if errorlevel 1 if not errorlevel 2 echo Today is Sunday
  31.  bu m
  32.  
  33.  bu _ off
  34.  echo No cursor
  35.  bu w 5
  36.  bu _
  37.  echo Cursor is back
  38.  bu w 10
  39.  echo ------------------------------------------------------- blank line follows
  40.  bu b
  41.  echo -------------------------------------------------------
  42.  bu p
  43.  bu p That was a pause w/o msg, this one with a msg.
  44.  
  45. :menu
  46.  bu h Menu to test sounds:    (You can make menus too!)
  47.  bu d bu-menu.txt
  48.  bu c {rwngdpq} {q:15} Choose your Noise
  49.  if errorlevel 7 goto ch-end
  50.  if errorlevel 6 goto ch-6
  51.  if errorlevel 5 goto ch-5
  52.  if errorlevel 4 goto ch-4
  53.  if errorlevel 3 goto ch-3
  54.  if errorlevel 2 goto ch-2
  55.  if errorlevel 1 goto ch-1
  56.  
  57.  rem    Notice that the errorlevels are going from high to low.  Works better!
  58.  bu p   We should never get here!
  59.  
  60. :ch-1
  61.  bu s R
  62.  goto menu
  63. :ch-2
  64.  bu s W
  65.  goto menu
  66. :ch-3
  67.  bu s N
  68.  goto menu
  69. :ch-4
  70.  bu s G
  71.  goto menu
  72. :ch-5
  73.  bu s ?
  74.  goto menu
  75. :ch-6
  76.  bu s phone
  77.  goto menu
  78. :ch-end
  79.  
  80.  bu h The WAIT command...
  81.  bu m We will now wait for about 10 seconds, unless you hit a key first
  82.  bu s g
  83.  bu t
  84.  bu w 10
  85.  bu t
  86.  bu s g
  87.  bu p
  88.  
  89.  bu
  90.  echo End of BU demonstration
  91.  bu y {n:15} Do you want to run the demo again
  92.  if errorlevel 1 goto start
  93.  bu h Typing BU-DEMO.BAT
  94.  bu f bu-demo.bat
  95.  bu m Companion menu-generating programs are available.  Write for details!
  96.